/**
 * Copyright (C) 2016 Juno Inc., All Rights Reserved.
 */
package com.jyl.designPattern.creational.factoryMethod;

/**
 *
 * @author Long, E-mail:jyl0401@163.com
 * @date 2016年7月19日 上午11:17:40
 */
public class Test {
	
	public static void main(String[] args) {
		
        IWorkFactory studentWorkFactory = new StudentWorkFactory();
        studentWorkFactory.getWork().doWork();
        
        IWorkFactory teacherWorkFactory = new TeacherWorkFactory();
        teacherWorkFactory.getWork().doWork();
    }

}
